﻿@model GameSchool.Models.Teacher

@{
    ViewBag.Title = "Create Teacher | GameSchool";
    Layout = "~/Views/Shared/_LayoutSupervisor.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="mainSectionStuff">
    <h2>Create Teacher</h2>
    <div class="createForm">
        @using (Html.BeginForm()) {
            @Html.ValidationSummary(true)
                <div>
                <div class="tableSubtitle">Name:</div>
                    @Html.TextAreaFor(Model => Model.name, new { rows = "1", cols = "50" })
                </div>
                <div>
                <div class="tableSubtitle">SSN:</div>
                    @Html.TextBoxFor(Model => Model.kennitala)
                </div>
                <div>
                <div class="tableSubtitle">Address:</div>
                    @Html.TextAreaFor(Model => Model.address, new { rows = "1", cols = "50" })
                </div>
                <div>
                <div class="tableSubtitle">Zip:</div>
                    @Html.TextBoxFor(Model => Model.zip)
                </div>
                <div id="createTeacherPhone">
                <div class="tableSubtitle">Phone:</div>
                    @Html.TextBoxFor(Model => Model.phone)
                </div>
                <div>
                <div class="tableSubtitle">Email:</div>
                    @Html.TextAreaFor(Model => Model.email, new { rows = "1", cols = "50" })
                </div>
                <p>
                    <input type="submit" value="Save" />
                </p>
        }
    </div>
</div>